﻿@model Nullable<DateTime> 
@{ 
    DateTime dt = DateTime.Now;
    if (Model != null)
    {
        dt = (System.DateTime)Model;

    } 
    @Html.TextBox("", dt, new { @class = "datetimefield", type = "datetime" }) 
}
